package com.huqing.icu.rentreport.enums;

import lombok.Getter;

/**
 * 举报记录的审核状态
 *
 * @author huqing
 * @date 2024-11-18 22:47
 */
@Getter
public enum ReportApproveStatusEnum {


    PROCESSING(10, "待审核"),

    PASS(20, "审核通过"),

    NOT_PASS(30, "审核不通过"),

    ;

    private Integer code;

    private String msg;

    ReportApproveStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static ReportApproveStatusEnum of(int code) {
        for (ReportApproveStatusEnum categoryEnum : values()) {
            if (categoryEnum.code.equals(code)) {
                return categoryEnum;
            }
        }
        return null;
    }
}
